check_snmp, performance graph and graph explorer discrepancy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp, performance graph and graph explorer discrep

Post by tgriep »

In the XML file, that check is still using the incorrect template. Below is the template and the check it is still using.

Code: Select all

<TEMPLATE>check_xi_service_snmp</TEMPLATE>
<NAGIOS_CHECK_COMMAND>check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!</NAGIOS_CHECK_COMMAND>
Can you edit that service check and delete the template assigned to it. Save it out and apply the config.
After that, delete the xml and rrd files and see if the custom check is applied to those service's and that the data is graphing correctly.
If you open the xml file, this is what the template and check should look like for example.

Code: Select all

<TEMPLATE>check_snmp_gauge</TEMPLATE>
<NAGIOS_CHECK_COMMAND>check_snmp_gauge! -P 2c -C public -o  1.3.6.1.2.1.4.31.1.1.35.1 -w 100 -c 110 -l test!!!!!!!</NAGIOS_CHECK_COMMAND>
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: check_snmp, performance graph and graph explorer discrep

Post by Box293 »

With pnp4nagios, the "TEMPLATE" is taken from the name of the nagios command, in this case check_xi_service_snmp.

If you want to change the name of the TEMPLATE:
CCM
Commands
Duplicate the check_xi_service_snmp command
Rename it to check_xi_service_snmp_alt
Apply Config
Edit the service in question
Change the command used to check_xi_service_snmp_alt
Apply Config

After the next check, the XML file should be updated to check_xi_service_snmp_alt.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post by iptribe »

I am not sure why it is still using check_xi_service_snmp command.

This is what I currently have configured:

No template is assigned to the service.
2.PNG
I am using check_xi_service_snmp_gauge command instead of check_xi_service_snmp.
1.PNG
Changed it to check_snmp_gauge but still the same.
3.PNG
Deleted RRD and XML files. The new XML file generated still using check_xi_service_snmp.

Code: Select all

<NAGIOS_CHECK_COMMAND>check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!</NAGIOS_CHECK_COMMAND>
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp, performance graph and graph explorer discrep

Post by tgriep »

If the template isn't applied to that service, then the host is applied to the template and needs to be removed from there.
Go in to Core Config Manager > Service Templates and edit this template

Code: Select all

xiwizard_snmp_service
And remove that host / service from there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: check_snmp, performance graph and graph explorer discrep

Post by Box293 »

Very strange.

Can you have a look in the file /usr/local/nagios/var/objects.cache and find the Active Sessions service and post that definition here please.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post by iptribe »

tgriep wrote:If the template isn't applied to that service, then the host is applied to the template and needs to be removed from there.
Go in to Core Config Manager > Service Templates and edit this template

Code: Select all

xiwizard_snmp_service
And remove that host / service from there.
There are no hosts nor services attached to xiwizard_snmp_service template.
Box293 wrote:Very strange.

Can you have a look in the file /usr/local/nagios/var/objects.cache and find the Active Sessions service and post that definition here please.

Code: Select all

define service {
        host_name       RCS-PROD-SSC-01
        service_description     Active Sessions
        check_period    24x7
        check_command   check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!
        event_handler   xi_service_event_handler
        contacts        nagiosadmin
        notification_period     xi_timeperiod_24x7
        initial_state   o
        importance      0
        check_interval  5.000000
        retry_interval  10.000000
        max_check_attempts      10
        is_volatile     0
        parallelize_check       1
        active_checks_enabled   1
        passive_checks_enabled  1
        obsess  1
        event_handler_enabled   1
        low_flap_threshold      0.000000
        high_flap_threshold     0.000000
        flap_detection_enabled  1
        flap_detection_options  a
        freshness_threshold     0
        check_freshness 0
        notification_options    a
        notifications_enabled   1
        notification_interval   60.000000
        first_notification_delay        0.000000
        stalking_options        n
        process_perf_data       1
        retain_status_information       1
        retain_nonstatus_information    1
        }
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: check_snmp, performance graph and graph explorer discrep

Post by Box293 »

Something is not quite right here, can you email xisupport@nagios.com to generate a ticket.

Please send us your system profile in that email:

Click the Admin menu
System Config > System Profile
Click the Download Profile button and send us that file

We can drill down into the configs and see what is happening. The profile can contain sensitive information so we ask the customers not to upload it to the forums.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post by iptribe »

Box293 wrote:Something is not quite right here, can you email xisupport@nagios.com to generate a ticket.

Please send us your system profile in that email:

Click the Admin menu
System Config > System Profile
Click the Download Profile button and send us that file

We can drill down into the configs and see what is happening. The profile can contain sensitive information so we ask the customers not to upload it to the forums.
Email sent.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp, performance graph and graph explorer discrep

Post by tgriep »

Did you get a response with a ticket number when you sent the email to xisupport@nagios.com? I could not find it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iptribe
Posts: 52
Joined: Sun Aug 31, 2014 11:03 am

Re: check_snmp, performance graph and graph explorer discrep

Post by iptribe »

Hi tgriep,

I did, but apparently, my email was rejected as stated in the response...
Important Note:

Email support for Nagios XI is only available to customers with an active support/maintenance plan. Your email was automatically rejected because our system shows that you are not subscribed to a support/maintenance plan.