Nagios objectjson.cgi notification_options value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
davide.galletti.75
Posts: 7
Joined: Thu Nov 08, 2012 9:34 am

Nagios objectjson.cgi notification_options value

Post by davide.galletti.75 »

Hi All,

I'm using the objectjson.cgi page to generate a report for all our services and all their details.

When comming up to the notification_options field a get a number, instead would have expected a string (same as cfg file).
If this is the correct behavior, how should these values be decoded ?

Thanks
Davide
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios objectjson.cgi notification_options value

Post by cdienger »

This is expected. For hosts this breaks down to:

Down =2
Unreachable = 4
Recovery = 1
Flapping = 2048
Scheduled Downtime = 4096

and for services:

Waring = 2
Critical = 4
Unknown = 8
Recovery = 1
Flapping = 2048
Scheduled Downtime = 4096

Values are summed if multiple options are selected.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
davide.galletti.75
Posts: 7
Joined: Thu Nov 08, 2012 9:34 am

Re: Nagios objectjson.cgi notification_options value

Post by davide.galletti.75 »

Thanks!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios objectjson.cgi notification_options value

Post by cdienger »

Glad to help. Locking.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked